import CommonApi from './common'

// 巡查任务
class InspectionRecordApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/ins/record'
    }

    // 下载记录
    downLoadExcel(data) {
        const path = this.resolvePath('/downLoadExcel')
        return path
    }
    // 检查是否有符合条件的文件
    checkDownLoadExcel(data) {
        const path = this.resolvePath('/checkDownLoadExcel')
        return this.post(path, data)
    }

    // 详情接口
    detail(data) {
        const path = this.resolvePath('/detailsById')
        return this.post(path, data)
    }
}

export default InspectionRecordApi
